$OpenBSD: patch-external_libwpd_ExternalProject_libwpd_mk,v 1.3 2016/03/01 21:39:58 robert Exp $
--- external/libwpd/ExternalProject_libwpd.mk.orig.port	Wed Jan 27 01:58:25 2016
+++ external/libwpd/ExternalProject_libwpd.mk	Wed Feb 10 14:23:02 2016
@@ -35,10 +35,11 @@ $(call gb_ExternalProject_get_state_target,libwpd,buil
 				--prefix=/@.__________________________________________________OOO) \
 			$(if $(verbose),--disable-silent-rules,--enable-silent-rules) \
 			$(if $(filter TRUE,$(DISABLE_DYNLOADING)),CFLAGS="$(CFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_COMPILEROPTFLAGS)" CXXFLAGS="$(CXXFLAGS) $(gb_VISIBILITY_FLAGS) $(gb_VISIBILITY_FLAGS_CXX) $(gb_COMPILEROPTFLAGS)") \
-			$(if $(filter LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
+			$(if $(filter OPENBSD LINUX,$(OS)),$(if $(SYSTEM_REVENGE),, \
 				'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
 					-Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN')) \
 			$(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
+			CPPFLAGS="-fPIC -DPIC" LDFLAGS="-fPIC -DPIC" \
 		&& $(MAKE) \
 		$(if $(filter MACOSX,$(OS)),\
 			&& $(PERL) $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
